<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/10/12 0012
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<h1>send.jsp</h1>
<%
    //jsp中报错，可以忽略
    pageContext.setAttribute("page_name", "pageContext_zhangsan");

    request.setAttribute("request_name", "request_zhangsan");

    session.setAttribute("session_name","session_zhangsan");

     application.setAttribute("application_name","application_zhangsan");
%>

<%
    Object obj = pageContext.getAttribute("page_name");
    Object request_obj = request.getAttribute("request_name");
    Object session_obj = session.getAttribute("session_name");
    Object application_obj = application.getAttribute("application_name");


    //request.getRequestDispatcher("show.jsp").forward(request, response);
    response.sendRedirect("show.jsp");

%>

<%= obj%> <br/>

<%= request_obj%><br/>

<%= session_obj%> <br/>

<%= application_obj%> <br/>
</body>
</html>
